package com.dd.poetry.ui.home

import com.dd.common.base.BaseFragment
import com.dd.poetry.databinding.FragmentHomeBinding

class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>() {
    private val _binding get() = binding!!
    private val _viewModel get() = model!!

    override fun initUI() {
        _binding.button.setOnClickListener {
            _viewModel.checkActivity()
        }

        _viewModel.appSettings.observe(viewLifecycleOwner) {
            _binding.textHome.text = it.toString()
        }
    }

    override fun initObserver() {

    }
}